<?php $this->load->view('inc/header.php');?>
<h2 class="t1">所有分类</h2>
<div class="catena" ><div class="inner">
  <?php foreach ($list = mlist('cat','*',array(),array('img_id|s'=>'images:id,l'),0,0,'','a') as $k => $v) :?>  
  <div class="item">
    <img width="131px" src="<?php echo $base_url.fd('v.img_id_row.l','na',$v);?>"/>
    <div class="title"><?php echo $v['title'];?></div>
    <a class="more" href="<?php echo site_url('c=product&m=cat&id='.$v['id']);?>">more</a>
  </div>
  <?php if(($k+1)%3 == 0):?>
  <div style="clear:both;"></div>
  <div style="height:10px;"></div>
  <?php endif;?>
  <?php endforeach;?>
  <div style="clear:both;"></div>
</div></div>

<?php $this->load->view('inc/footer.php');?>

<script>$(function(){
  $('.catena .item').hover(function(){
    $(this).removeClass('item');
    $(this).addClass('item-h1');
  },function(){
    $(this).removeClass('item-h1');
    $(this).addClass('item');
  });
});</script>




